package br.com.californiahotel.client.service;

import java.util.Date;
import java.util.List;

import br.com.californiahotel.shared.models.Apartamento;
import br.com.californiahotel.shared.models.Tipo;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface ApartamentoServiceAsync {

	void save(Apartamento model, AsyncCallback<Boolean> callback);

	void findAll(AsyncCallback<List<Apartamento>> callback);

	void delete(Integer key, AsyncCallback<Boolean> callback);

	void edit(Apartamento model, String id, AsyncCallback<Boolean> callback);

	void findAllTypes(AsyncCallback<List<Tipo>> callback);

	void findDisponiblesByDate(Date date,
			AsyncCallback<List<Apartamento>> callback);

}
